package com.gp.ssmplus.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gp.ssmplus.base.core.mybatis.base.entity.AbstractEntity;
import com.gp.ssmplus.base.core.mybatis.common.TableAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户角色
 *
 * @author flyme
 * @date 2019-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("app_role")
@TableAlias("role")
public class AppRole extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "roleId", type = IdType.ID_WORKER)
    private Long roleId;

    private String roleCode;

    private String roleName;

    private Integer status;

    private String groupName;

    private String roleDesc;

    private Integer isPersist;

}
